package cn.sfrog.project.biz.admin.service;

import cn.sfrog.project.biz.admin.domain.BizStudyOrder;
import cn.sfrog.project.biz.admin.domain.vo.BizStudyOrderFormVO;
import cn.sfrog.project.biz.admin.domain.vo.BizStudyOrderQueryVO;
import cn.sfrog.project.biz.admin.domain.vo.BizStudyOrderVO;
import cn.sfrog.system.domain.vo.BizStatusChangeVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * 学研订单Service接口
 */
public interface IBizStudyOrderService extends IService<BizStudyOrder> {
    /**
     * 查询学研订单
     *
     * @param id 学研订单主键
     * @return 学研订单
     */
    public BizStudyOrderVO selectBizStudyOrderById(Long id);

    /**
     * 查询学研订单列表
     *
     * @param query 学研订单
     * @return 学研订单集合
     */
    public List<BizStudyOrderVO> selectBizStudyOrderList(BizStudyOrderQueryVO query);

    /**
     * 新增学研订单
     *
     * @param form 学研订单
     * @return 结果
     */
    public boolean insertBizStudyOrder(BizStudyOrderFormVO form);

    /**
     * 修改学研订单
     *
     * @param form 学研订单
     * @return 结果
     */
    public boolean updateBizStudyOrder(BizStudyOrderFormVO form);

    /**
     * 批量删除学研订单
     *
     * @param ids 需要删除的学研订单主键集合
     * @return 结果
     */
    public boolean deleteBizStudyOrderByIds(Long[] ids);

    /**
     * 更改状态
     *
     * @param vo 更改状态表单
     * @return 结果
     */
    boolean changeStatus(BizStatusChangeVO vo);

    /**
     * APP-生成学研订单
     * @param userId
     * @param donateAmount
     * @param projectId
     * @param hospitalId
     * @return
     */
    BizStudyOrder createStudyOrder(Long userId, BigDecimal donateAmount, Long projectId,Long hospitalId);
}
